<?php
require_once('../carbox.php');
if(carbox_sign_in(strtolower($_POST['login']), $_POST['password'], $_GET["id"], $_GET["numero_magico"])) {
	$pid = isset($_GET["pid"])? '?pid='.$_GET["pid"] : NULL;
	header('Location: http://'.$_SERVER['HTTP_HOST'].'/carbox/index.php'.$pid);
}
?>
<svg xmlns="http://www.w3.org/2000/svg">
	<circle cx="50%" cy="50%" r="25%" style="fill:white; stroke: #eee; stroke-width: 5%;" />
	<text id="text" x="42.5%" y="77.5%" font-family="Verdana" fill="#eee" font-size="500">!</text>	
</svg>
<script type="text/javascript">
	alert("Login ou senha inválidos!");
	location.href = "<?='http://'.$_SERVER['HTTP_HOST'].'/carbox/login.php'?>";	
</script>
